import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;

/**
 * TitleScreen options class used on main screen to jump to levels for easy developing
 * 
 * @author Jasper Jans
 */
public class TitleScreenOptions extends Actor
{

    
    public TitleScreenOptions()
    {
        GreenfootImage img = new GreenfootImage("Druk 1, 2, 3 of 4 om de spellen te starten: ",200, Color.BLACK, null);
        setImage(img);
      
    }
    
    public void act() 
    {
        if(Greenfoot.isKeyDown("1"))
        {
            Greenfoot.setWorld(new Office());
        }
        
        if(Greenfoot.isKeyDown("2"))
        {
            Greenfoot.setWorld(new RescueBoats());
        }
        
        if(Greenfoot.isKeyDown("3"))
        {
            Greenfoot.setWorld(new SandBags());
        }
        
        if(Greenfoot.isKeyDown("4"))
        {
            Greenfoot.setWorld(new PipeLines());
        }
        
    }    
}
